PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


Theme Cursor Constants

You can pass constants of type ThemeCursor to the functions SetThemeCursor and SetAnimatedThemeCursor to specify the category of cursor to be displayed for your application. The Appearance Manager substitutes the theme-specific instance of the cursor for the cursor category as is appropriate. The ThemeCursor constants are available with Appearance Manager 1.1 and later.

enum {
    kThemeArrowCursor                   = 0,
    kThemeCopyArrowCursor               = 1,
    kThemeAliasArrowCursor              = 2,
    kThemeContextualMenuArrowCursor     = 3,
    kThemeIBeamCursor                   = 4,
    kThemeCrossCursor                   = 5,
    kThemePlusCursor                    = 6,
    kThemeWatchCursor                   = 7,
    kThemeClosedHandCursor              = 8,
    kThemeOpenHandCursor                = 9,
    kThemePointingHandCursor            = 10,
    kThemeCountingUpHandCursor          = 11,
    kThemeCountingDownHandCursor        = 12,
    kThemeCountingUpAndDownHandCursor   = 13,
    kThemeSpinningCursor                = 14,
    kThemeResizeLeftCursor              = 15,
    kThemeResizeRightCursor             = 16,
    kThemeResizeLeftRightCursor         = 17
};
typedef UInt32 ThemeCursor;

Constant descriptions

kThemeArrowCursor
The cursor identified by this constant is typically used as the standard cursor.
kThemeCopyArrowCursor
The cursor identified by this constant is typically used when the cursor is over a location where a drag action would initiate a copy.
kThemeAliasArrowCursor
The cursor identified by this constant is typically used when the cursor is over a location where a drag action would create an alias or link.
kThemeContextualMenuArrowCursor
The cursor identified by this constant is typically used when the Control key is being pressed and the cursor is over a location where a contextual menu can be activated.
kThemeIBeamCursor
The cursor identified by this constant is typically used when the cursor is over an area where the user can select text.
kThemeCrossCursor
The cursor identified by this constant is typically used when the cursor is over an area where the user can draw graphics.
kThemePlusCursor
The cursor identified by this constant is typically used when the cursor is over an area where the user can select table cells.
kThemeWatchCursor
The cursor identified by this constant is typically used to indicate that an operation is in progress. You can animate this cursor so that a hand of the watch appears to move.
kThemeClosedHandCursor
The cursor identified by this constant is typically used to indicate that an object has been grabbed and is being moved by the user.
kThemeOpenHandCursor
The cursor identified by this constant is typically used to indicate that an object may be grabbed or moved by the user.
kThemePointingHandCursor
The cursor identified by this constant has the appearance of a pointing hand. You would typically use this constant to indicate that the user may select an object by pressing the mouse button.
kThemeCountingUpHandCursor
The cursor identified by this constant is typically used to indicate that an operation is in progress. You can animate this cursor so that the fingers appear to open from the palm one by one.
kThemeCountingDownHandCursor
The cursor identified by this constant is typically used to indicate that an operation is in progress. You can animate this cursor so that the fingers appear to fold into the palm one by one.
kThemeCountingUpAndDownHandCursor
The cursor identified by this constant is typically used to indicate that an operation is in progress. You can animate this cursor so that the fingers appear to alternate between opening from the palm one by one and folding into the palm one by one.
kThemeSpinningCursor
The cursor identified by this constant is typically used to indicate that an operation is in progress.
kThemeResizeLeftCursor
The cursor identified by this constant is typically used to indicate that an object may be resized by dragging to the left.
kThemeResizeRightCursor
The cursor identified by this constant is typically used to indicate that an object may be resized by dragging to the right.
kThemeResizeLeftRightCursor
The cursor identified by this constant is typically used to indicate that an object may be resized in either direction horizontally.

© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)